package projetolp2.GraphicInterface;

import java.awt.Component;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JFileChooser;
import javax.swing.JPanel;

public class SelecionaArquivo extends MealPoints implements ActionListener{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private JFileChooser selecionaArq = new JFileChooser("Selecione o arquivo a ser lido");
	private JPanel panelMenu = new JPanel(new GridLayout(0, 1));
	
	public SelecionaArquivo(){
		
	}
	private void ajudaDeBotoes(){
	}
	
	public void actionPerformed(ActionEvent e){
	}
	private void createComponents() {
		ajudaDeBotoes();
		panelMenu.add(selecionaArq);
    }
	@SuppressWarnings("deprecation")
	public Component panel(){
		createComponents();
		selecionaArq.setMultiSelectionEnabled(false);
		selecionaArq.setFileSelectionMode(TEXT_CURSOR);
		panelMenu.setVisible(true);
		
		
		return panelMenu;
	}	
}
	
	
